package com.sunny.feign;

import com.sunny.feign.cloud.FeignService;
import com.sunny.feign.custom.CustomFeignService;
import com.sunny.feign.custom.EnableCustomFeignClients;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(clients = FeignService.class)
@EnableCustomFeignClients(clients = CustomFeignService.class)
public class CloudFeignCustomApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudFeignCustomApplication.class, args);
    }

}
